package luccy.util;

import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

public class AnnotationUtil {

	private AnnotationUtil() {
	}

	public static ElementType[] getType(Class<? extends Annotation> clazz) {
		if (clazz == null) {
			return new ElementType[0];
		}
		return clazz.getAnnotation(Target.class).value();
	}
}
